<?php

include_once( '../api/session.php' );

require_once( '../api/Client.class.php' );

$pname = 'Registre client';

include_once( 'templates/header.tmp.php' );

if( $_POST ) {
	$response = Client::register( $_POST );
	if( strtolower( $response['status'] ) == 'ok' )
	  $okmsg = 'Usuari registrat correctament';
	else
	  $komsg = 'Problema registrant usuar';
}


include_once( 'templates/register_client.tmp.php' );

include_once( 'templates/footer.tmp.php' );

?>